package com.sf.sgs.sessionevaluate.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.sf.sgs.sessionevaluate.dao.ISessionInfoDao;
import com.sf.sgs.sessionevaluate.domain.SessionInfo;
import com.sf.sgs.sessionevaluate.service.ISessionInfoService;

@Component
@Transactional
public class SessionInfoServiceImpl implements ISessionInfoService {

	@Autowired
	private ISessionInfoDao sessionInfoDao;

	@Override
	public SessionInfo save(SessionInfo sessionInfo) {
		return sessionInfoDao.save(sessionInfo);
	}

	@Override
	public SessionInfo get(Long id) {
		return sessionInfoDao.findOne(id);
	}

}
